#include "trap.h"
   .set noat
   .globl main
   .text
main:
   li $s0, 0x00050000
   li $s1, 0x7ffec000
   add $s2, $s0, $s1                #$s2 = 0x8003c000, ov
   li $s1, 0x7ffed000
   addu $s3, $s0, $s1                #$s3 = 0x8003d000
   li $t0, 0x7ffff800
   addi $t1, $t0, 0xa000                #$t1 = 0x7fff9800
   addiu $t2, $t0, 0xac00                #$t2 = 0x8000a400
   lui $s0, 0xffff
   ori $s0, 0xfe00
   lui $s1, 0xffff
   ori $s1, 0xfaa0
   sub $s4, $s0, $s1                #$s4 = 0x00000360, ov
   ori $s1, 0xfad0
   subu $s5, $s0, $s1                #$s5 = 0x00000330
   li $t0, 0x00008000
   slt $t3, $s0, $t0                #$t3 = 0x00000001
   slti $t4, $t0, 0x8100                #$t4 = 0x00000000
   sltu $t5, $s0, $t0                #$t5 = 0x00000000
   sltiu $t6, $s0, 0xfe10                #$t6 = 0x00000000
   lui $t7, 0xffff
   ori $t7, 0xe000
   div $zero, $t0, $t7
   mfhi $t8
   mflo $t9
   divu $zero, $t0, $t7
   mfhi $t8
   mflo $t9
   mult $t0, $t7
   mfhi $s6
   mflo $s7
   multu $t0, $t7
   mfhi $s6
   mflo $s7
   mthi $t0
   mtlo $t1
   mfhi $a0
   mflo $a1
   li $a0, 0x0002
   sllv $v0, $t7, $a0
   sll $v1, $t7, 0x0003
   srav $v0, $t7, $a0
   sra $v1, $t7, 0x0003
   srlv $v0, $t7, $a0
   srl $v1, $t7, 0x0003


   HIT_GOOD_TRAP		#stop temu
